package com.book.controller;

import com.book.items.composite.ProductComposite;
import com.book.pojo.BusinessLaunch;
import com.book.service.BusinessLaunchService;
import com.book.service.ProductItemService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/businessLaunch")
@RequiredArgsConstructor
public class BusinessLaunchController {


    private final BusinessLaunchService businessLaunchService;


    @GetMapping("getAll")
    public List<BusinessLaunch> getAll() {
        return businessLaunchService.list();
    }


}
